//
/***********************************************************
             File name:      main.c
             Author:         Bitat (陆叁柒)
             Email :         Bitat@qq.com
             Gitee :         https://gitee.com/bitat
             CSDN  :         https://blog.csdn.net/bitat 
             History:        2023/3/25
************************************************************/
    

#include <stdio.h>

void bublle_sort(int arr[10], int sz)
{
    int i = 0;
    int tmp = 0;
    for(i = 0; i < 9; i++)
    {
        int j = 0;
        for(j = 0; j < 9-i; j++)
        {
            if(arr[j] > arr[j+1])
            {
                tmp = arr[j];
                arr[j] = arr[j+1];
                arr[j+1] = tmp;
            }
        }
    }

}

int main()
{
    int arr[10] = {0};
    int i = 0;
    for(i = 0; i < 10; i++)
    {
        scanf("%d",&arr[i]);
    }
    bublle_sort(arr,10);
    for(i = 0; i < 10; i++)
    {
        printf("%d ",arr[i]);
    }
    printf("\n");
    return 0;
}
